package com.vue.vuedemo.service.impl;

import com.vue.vuedemo.dao.PersonsTeamsMapper;
import com.vue.vuedemo.pojo.Personsteams;
import com.vue.vuedemo.service.PersonsTeamsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("PersonsTeamsService")
public class PersonsTeamsServiceImpl implements PersonsTeamsService {

    @Resource
    PersonsTeamsMapper personsTeamsMapper;

    @Override
    public List<Personsteams> findShow(Integer pTpId) {
        return personsTeamsMapper.findShow(pTpId);
    }

    @Override
    public void addPT(Personsteams personsteams) {
        personsTeamsMapper.addPT(personsteams);
    }

    @Override
    public void delPT(Integer ptId) {
        personsTeamsMapper.delPT(ptId);
    }

    @Override
    public Personsteams PTidshow(Integer ptPid, Integer ptTId) {
        return personsTeamsMapper.PTidshow(ptPid, ptTId);
    }
}
